package application;

import java.net.URL;
import java.util.ResourceBundle;

import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.ProgressBar;
import javafx.scene.image.Image;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundImage;
import javafx.scene.layout.BackgroundPosition;
import javafx.scene.layout.BackgroundRepeat;
import javafx.scene.layout.BackgroundSize;
import javafx.scene.layout.VBox;

public class MyPreloaderEvent implements Initializable{
	@FXML
	private VBox vBox;
	@FXML
	private VBox myVBox;

	@Override
	public void initialize(URL location, ResourceBundle resources) {
		BackgroundImage myBI= new BackgroundImage(new Image(getClass().getResourceAsStream("page.jpg"),400,300,false,true),
		        BackgroundRepeat.REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT,
		          BackgroundSize.DEFAULT);
		vBox.setBackground(new Background(myBI));
		ProgressBar progressBar=new ProgressBar();
		progressBar.setPrefWidth(400);
		myVBox.getChildren().add(progressBar);
		// TODO Auto-generated method stub
		
	}

}
